
package com.insigma.business.qrcode.soldier._consumer.impl;


import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.soldier.dto.*;
import com.insigma.business.qrcode.soldier._consumer.SecurityConsumer;
import com.insigma.business.qrcode.soldier._provider.SecurityProvider;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service("securityConsumer")
public class SecurityConsumerImpl implements SecurityConsumer {

    @Resource
    private SecurityProvider securityProvider;


    @Override
    public BaseResponse<LoggedInPersistentCommonUserDTO> getLoggedInPersistentCommonUser(final String token) {
        return securityProvider.getLoggedInPersistentCommonUser(token);
    }


    @Override
    public BaseResponse<LoggedInPersistentGovEmployeeDTO> getLoggedInPersistentGovEmployee(final String token) {
        return securityProvider.getLoggedInPersistentGovEmployee(token);
    }


    @Override
    public BaseResponse<LoggedInPersistentSoldierDTO> getLoggedInPersistentSoldier(final String token) {
        return securityProvider.getLoggedInSoldierPersistentSoldier(token);
    }


    @Override
    public BaseResponse<String> getClientRedirectUrlByAlipayLifeH5Callback(final AlipayOAuth2RedirectDealRequest alipayOAuth2RedirectDealRequest) {
        return securityProvider.getClientRedirectUrlByAlipayLifeH5Callback(alipayOAuth2RedirectDealRequest);
    }

    @Override
    public BaseResponse<LoggedInPersistentMerchantUserDTO> getLoggedInPersistentMerchantUser(String token) {
        return securityProvider.getLoggedInPersistentMerchantUser(token);
    }


}
